package com.easygem.business.mapper;

import com.easygem.common.model.business.BgClient;
import com.easygem.common.vo.business.BgClientVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 肖智
 * @version 1.0
 * @Description TODO
 * @date 2025/1/13
 */
public interface BgClientMapper extends tk.mybatis.mapper.common.Mapper<BgClient>, Mapper<BgClient>{
    /**
     * 查询客户
     * @param bgClientVO
     * @return
     */
    List<BgClient> selectBgClientList(BgClientVO bgClientVO);

    /**
     * 删除客户
     * @param clientId
     * @return
     */
    Integer deleteBgClientByClientId(@Param("clientId") Long clientId);

    /**
     * 添加客户
     * @param map
     * @return
     */
    Integer addBgClient(Map<String,Object> map);

    /**
     * 修改客户
     * @param map
     * @return
     */
    Integer editBgClient(Map<String,Object> map);

    /**
     * 加关注
     * @param clientId
     * @return
     */
    Integer addAttention(@Param("clientId") Long clientId);

    /**
     * 取关
     * @param clientId
     * @return
     */
    Integer cancelAttention(@Param("clientId") Long clientId);
}
